package io.mvvm.common.enumerate;

public enum ResponseEnum {
    SUCCESS(0, "操作成功"),
    ERROR(-1, "操作失败"),

    FORCIBLY_LOGIN_SUCCESS(400, "强制登陆成功"),
    FORCIBLY_LOGIN_ERROR(401, "强制登陆异常"),
    INSUFFICIENT_PERMISSIONS(402, "权限不足"),
    NOT_LOGGED_IN(403, "未登录"),
    AUTHENTICATION_FAILED(404, "身份验证失败"),
    FAILED_TO_LOGIN(404, "登陆失败"),
    USER_ONLINE(405, "当前用户已登录，是否强制登陆？"),
    LOGIN_SUCCESS(406, "登陆成功"),
    LOGOUT_SUCCESS(407, "登出成功"),


    ;

    /**
     * code
     */
    private Integer code;
    /**
     * 消息
     */
    private String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
